MadCap Flare for Programmers by Tregner Thomas & Owens David
Author:Tregner, Thomas & Owens, David
Language: eng
Format: epub
Tags: technical writing, online help
ISBN: 978-1-937434-26-7
Publisher: XML Press
Published: 2015-06-23T04:00:00+00:00
7.1.2. Connecting Toolbar functions to other actions
You can connect Toolbar functions to more than buttons. Toolbar JavaScript is just a means of defining a script to be included in the output. Remember that when we first added the “Hello World!” function to the Toolbar JavaScript, we didn’t wire it up to a button. You have other options. For example, if you add the code in Example 7.1 to the Toolbar JavaScript, it will add functionality to the search field that clears any text in the field when you press the escape key.
Example 7.1 – JavaScript to add keyup behavior for the search field
window.onload = function() { $("#search-field").keyup(function (e) { if (e.keyCode == 27) { $("#search-field").val(""); } }); }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(5722)
Autoboyography by Christina Lauren(5209)
Eat That Frog! by Brian Tracy(4486)
Dialogue by Robert McKee(4361)
Sticky Fingers by Joe Hagan(4153)
Journeys Out of the Body by Robert Monroe(3598)
Annapurna by Maurice Herzog(3451)
Full Circle by Michael Palin(3422)
Schaum's Quick Guide to Writing Great Short Stories by Margaret Lucke(3352)
Elements of Style 2017 by Richard De A'Morelli(3328)
The Art of Dramatic Writing: Its Basis in the Creative Interpretation of Human Motives by Egri Lajos(3040)
Atlas Obscura by Joshua Foer(2937)
Why I Write by George Orwell(2922)
The Diviners by Libba Bray(2913)
The Fight by Norman Mailer(2902)
In Patagonia by Bruce Chatwin(2899)
The Mental Game of Writing: How to Overcome Obstacles, Stay Creative and Productive, and Free Your Mind for Success by James Scott Bell(2882)
Venice by Jan Morris(2552)
The Elements of Style by William Strunk and E. B. White(2454)